package org.thinkinbunny.financial.util;

import org.thinkinbunny.financial.R;

import android.content.Context;

public class Code2String {

	public static String getStringfromCode(int code, Context context) {
		String msg = "";
		switch (code) {

		case 1:
			msg = context.getString(R.string.breakfast);
			break;
		case 2:
			msg = context.getString(R.string.lunch);
			break;
		case 3:
			msg = context.getString(R.string.dinner);
			break;
		case 4:
			msg = context.getString(R.string.play);
			break;

		default:
			break;
		}
		return msg;

	}

}
